package com.cskaoyan.model.vo;

import lombok.Data;

/**
 * @program: mall38
 * @description:
 * @author: Wang
 * @create: 2022-05-06 23:47
 **/

@Data
public class CommentRespVO <T> {

    T data;
    String errmsg;
    int errno;

    public static <T> CommentRespVO ok(T data) {
        CommentRespVO commentRespVo = new CommentRespVO();
        commentRespVo.setData(data);
        commentRespVo.setErrno(0);
        commentRespVo.setErrmsg("成功");
        return commentRespVo;
    }

}
